<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>新订订单 - 物流管理系统</title>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<style media="all" type="text/css">@import "../../style/all.css";</style>
	<script type="text/javascript">
		function del(url){
			if(window.confirm("确认删除吗？")){
				window.location.href=url;
			}
		}
	</script>
</head>
<body style="background: none">
	<div class="top-bar">
				<!--a href="#" class="button">ADD NEW </a-->
				<h1>新订订单</h1>
				<div class="breadcrumbs"><a href="../../index.jsp" target="_top">首页</a> / <a href="../../cus_server/index.jsp">客户服务中心</a></div>
			</div>
			<div class="select-bar"/>
			<div class="table">
				<img src="../../style/img/bg-th-left.gif" width="8" height="7" alt="" class="left" />
				<img src="../../style/img/bg-th-right.gif" width="7" height="7" alt="" class="right" />
				<table class="listing" cellpadding="0" cellspacing="0">
					<tr>
						<th class="first" >商品编号</th>
						<th>商品名称</th>
						<th>数量</th>
						<th>单位</th>
						<th>单价</th>
						<th>金额</th>
						<th>商品说明</th>
						<th>库存</th>
						<th>备注</th>
						<th class="last">编辑</th>
					</tr>
					<c:forEach items="${list }" var="list">
					<tr>
						<td class="first style1">${list.productid }</td>
						<td>${list.productname }</td>
						<td>${list.ordercounts }</td>
						<td>${list.unit }</td>
						<td>${list.originalprice }</td>
						<td>${list.costprice }</td>
						<td>${list.productinfo }</td>
						<td>${list.kucount }</td>
						<td>${list.productremark }</td>
						<td class="last">
							<img src="../../style/img/edit-icon.gif" onclick="javascript:window.location='../getProductById/${list.productid }/${customerid }'" width="16" height="16" alt="修改" />
							<img src="../../style/img/hr.gif" width="16" height="16" onclick="javascript:del('../deleteByPrimaryKey/${list.productid }/${customerid }')" alt="删除" />
						</td>
					</tr>
					</c:forEach>
					<!-- <tr>
						<td class="first style1">总额</td>
						<td colspan="10">88888元</td>
					</tr> -->
				</table>
				<div align="center" style="width:100%;">
					<input type="button" class="button" onclick="javascript:window.history.go(-1);" value="上一步"/>&nbsp;
					<input type="button" class="button" onclick="javascript:window.location='../../cus_server/order/putOrder.jsp'" value="下一步"/>
				</div>
			</div>
</body>
</html>
